﻿@model MemberPoint.Entity.ViewModel.ConsumeOrdersViewModel

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>快速消费统计</title>
    <link href="~/Content/Easy UI/themes/default/easyui.css" rel="stylesheet" />
    <link href="~/Content/Easy UI/themes/icon.css" rel="stylesheet" />@*图片*@
    <script src="~/Content/Easy UI/script/jquery-1.11.1.js"></script>
    <script src="~/Content/Easy UI/script/jquery.easyui.min.js"></script>
    <script src="~/Content/Easy UI/script/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#dg").datagrid({
                fitColumns: false,//使列自动展开，收缩到合适的Datagrid高度
                toolbar: "#tb",//toolbar:通过选择器指定的工具栏
                pagination: true,//自动生成分页工具  pagination：如果为true，则在Datagrid控件底部显示分页工具栏
                /* fit: true,*///当设置为true的时候面板大小将自适应父容器
                singleSelect: true,//如果为true则只能选择一行
                rownumbers: true,//如果为true则显示一个行号列
                url: "/CountCenter/getCountConters/",//设置能够返回Json数据的Action所对应的路径
                columns: [[
                    { field: 'CO_OrderCode', title: '订单编号', width: 130, align: "center", },
                    { field: 'MC_CardID', title: '会员卡号', width: 130, align: "center", },
                    { field: 'MC_ID', title: '会员姓名', width: 130, align: "center", },
                    { field: 'CO_DiscountMoney', title: '消费金额', width: 130, align: "center", },
                    { field: 'CO_GavePoint', title: '获得积分', width: 150, align: "center", },
                    { field: 'CO_CreateTime', title: '消费时间', width: 270, align: "center", },
                ]]
            })
            //多条件查询
            $(".selectlist").click(function () {
                $("#dg").datagrid("load", {
                    CountBeginTime: $("#CountBeginTime").val(),
                    CountEndTime: $("#CountEndTime").val(),
                    CountPhone: $("#CountPhone").val(),
                    CountMemJi: $("#CountMemJi").val(),
                    CountMoney: $("#CountMoney").val(),
                    CountNumber: $("#CountNumber").val()
                })
            })
        })
    </script>
</head>
<body>
    <div>
        <form id="from_MemberCard">
            <fieldset>
                <legend>查询</legend>
                消费日期：<input id="CountBeginTime" type="text" class="easyui-datebox" required="required" />
                <input id="ss" class="easyui-timespinner" style="width:80px;" required="required" data-options="showSeconds:true" />
                &nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;
                <input id="CountEndTime" type="text" class="easyui-datebox" required="required" />
                <input id="ss" class="easyui-timespinner" style="width:80px;" required="required" data-options="showSeconds:true" />
                <br />
                卡号/手机：<input id="CountPhone" type="text" />
                会员等级：@*<input id="CountMemJi" type="text" />*@
                      <select id="CountMemJi" class="easyui-combobox" name="dept" style="width:100px;">
                          <option value="aa">普通会员</option>
                          <option>银卡会员</option>
                          <option>金卡会员</option>
                          <option>至尊VIP</option>
                      </select>

                消费金额：
                <select id="CountClass" class="easyui-combobox" name="dept" style="width:50px;">
                    <option value="aa">=</option>
                    <option>>=</option>
                    <option><=</option>
                </select>
                <input id="CountMoney" type="text" />
                <a id="btn" href="#" class="easyui-linkbutton selectlist">搜索</a>
                <br />
                订单号：<input id="CountNumber" type="text" />


            </fieldset>
            <table class="easyui-datagrid" id="dg"></table>
        </form>
    </div>
</body>
</html>
